#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
int n,m,k,T;

const int mod = 1e17;

signed main(){
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	cin >> T;
	while(T--) {
		int a,b;
		cout << "? " << mod << endl;
		cout.flush();
		cin >> a;
		cout << "? " << mod - a - 1 << endl;
		cin >> b;
		cout << "! " << b + 1 << endl;
	}
	return 0;
}